package com.jvm.classloader;
public class Singleton {

    private static Singleton singleton = new Singleton();

    private Singleton() {
        x++;
        y++;
    }

    private  int x = 0;
    private  int y;

    public static Singleton getSingleton() {
        return singleton;
    }

    public static void main(String[] args) {
        String s = new String();

    }
}

class Test2 {

    public static int X = 10;

    static {
//        System.out.println(X);
        X = 100;
    }

}
